package cn.huiyunche.base.service.enums;

/**
 * 交车，提车
 *
 * @author LYN
 */
public enum DepartRecepitEnum {

    DEPART(10, "提车"),
    RECEPIT(20, "交车"),;

    private final int value;
    private final String text;

    DepartRecepitEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static DepartRecepitEnum getByValue(int value) {
        for (DepartRecepitEnum temp : DepartRecepitEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
